package cn.itrip.dao.user;

import cn.itrip.beans.pojo.ItripUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface ItripUserMapper {

	/**
	 * 根据id查询用户
	 * @param id id
	 * @return ItripUser
	 * @throws Exception
	 */
	 ItripUser getItripUserById(@Param(value = "id") Long id)throws Exception;

	/**
	 * 根据Map查询ItripUserList
	 * @param param Map
	 * @return ItripUser集合
	 * @throws Exception
	 */
	 List<ItripUser> getItripUserListByMap(Map<String, Object> param)throws Exception;

	/**
	 * 根据条件查询用户数量
	 * @param param map
	 * @return
	 * @throws Exception
	 */
	 Integer getItripUserCountByMap(Map<String, Object> param)throws Exception;

	/**
	 * 新增用户
	 * @param itripUser 用户
	 * @return itripUser
	 * @throws Exception
	 */
	 Integer insertItripUser(ItripUser itripUser)throws Exception;

	/**
	 * 更新用户信息
	 * @param itripUser 用户
	 * @return 返回integer
	 * @throws Exception
	 */
	 Integer updateItripUser(ItripUser itripUser)throws Exception;

	/**
	 * 删除用户
	 */
	 Integer deleteItripUserById(@Param(value = "id") Long id)throws Exception;

}
